(function() {
   function check_login(){
        var logintomaz = sessionStorage.getItem("3e2bb4d72ebe48f9");
        if(logintomaz === null || logintomaz !== '7dcaee1cfe2c9fb9'){
            Qmsg.error('未登录');
            setTimeout(function(){
                window.location.href = 'lgreg.php';
            }, 2250);
        }
   }
   function outlogin(){
    sessionStorage.removeItem("3e2bb4d72ebe48f9");
    sessionStorage.removeItem("user");
    Qmsg.success('退出成功');
    setTimeout(function(){
        window.location.href = 'lgreg.php';
    }, 1500);
   }
   function check_logina(){
    var logintomaz = sessionStorage.getItem("3ecmb4d07a-be48f9");
    if(logintomaz === null || logintomaz !== '7dcc@%#fe6792'){
        Qmsg.error('未登录');
        setTimeout(function(){
            window.location.href = 'lgreg.php';
        }, 2250);
    }
}
function outlogin_admin(){
sessionStorage.removeItem("3ecmb4d07a-be48f9");
Qmsg.success('退出成功');
setTimeout(function(){
    window.location.href = 'lgreg.php';
}, 1500);
}
    useradmin = {
        check_login,
        outlogin,
        check_logina,
        outlogin_admin
    };
    })();